projects
/
babl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e44467
)
reduce default max babl path to 3
author
Øyvind Kolås
<pippin@gimp.org>
Tue, 15 Nov 2016 14:47:58 +0000
(15:47 +0100)
committer
Øyvind Kolås
<pippin@gimp.org>
Tue, 15 Nov 2016 14:48:14 +0000
(15:48 +0100)
Big decrease in combinatorial explosion of search - missing out on some big
fish.
babl/babl-fish-path.c
patch
|
blob
|
history
diff --git
a/babl/babl-fish-path.c
b/babl/babl-fish-path.c
index c8ba5884cf3532c58f42b250d8e62aaddf382f56..ebbdd9e20a356d6c3b6988066efa01d38fab99d3 100644
(file)
--- a/
babl/babl-fish-path.c
+++ b/
babl/babl-fish-path.c
@@
-126,7
+126,10
@@
static int max_path_length (void)
if (env)
max_length = atoi (env);
else
- max_length = 4;
+ max_length = 3; /* reducing this number makes finding short fishes much
+ faster - even if we lose out on some of the fast
+ bigger fish
+ */
if (max_length > BABL_HARD_MAX_PATH_LENGTH)
max_length = BABL_HARD_MAX_PATH_LENGTH;
else if (max_length <= 0)